@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/basic/basicCode/basicCode.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">通用编码管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
    
        <div class="layui-col-sm12 layui-col-md3 layui-col-lg3">
            <div class="layui-card">
                <div class="layui-card-body mini-bar">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                        </div>
                    </div>
                    <div class="ztree" id="codeTree"></div>
                </div>
            </div>
        </div>
        
        <div class="layui-col-sm12 layui-col-md9 layui-col-lg9">
		    <div class="layui-card">
		        <div class="layui-card-body">
		            <form id="basicCodeForm" lay-filter="basicCodeForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
		                <input id="id" name="id" type="hidden"/>
                        <input id="pid" name="pid" type="hidden">
		                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 1px;">
					    	<legend id="legend"></legend>
					  	</fieldset>
		                <div class="layui-form-item" pane="">
		                    <label class="layui-form-label" style="font-weight: 600;">是否启用<span style="color: red;">*</span></label>
		                    <div class="layui-input-block">
		                        <input type="radio" name="status" value="1" title="正常" checked="checked">
		                        <input type="radio" name="status" value="2" title="禁用">
		                    </div>
		                </div>
		                <div class="layui-form-item">
		                    <label class="layui-form-label" style="font-weight: 600;">名称<span style="color: red;">*</span></label>
		                    <div class="layui-input-block">
		                        <input id="codeName" name="codeName" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
		                    </div>
		                </div>
		                <div class="layui-form-item">
		                    <label class="layui-form-label" style="font-weight: 600;">编码<span style="color: red;">*</span></label>
		                    <div class="layui-input-block">
		                        <input id="codeNumber" name="codeNumber" placeholder="请输入编码" type="text" class="layui-input" lay-verify="required" required/>
		                    </div>
		                </div>
		                <div class="layui-form-item layui-form-text">
		                    <label class="layui-form-label">描述</label>
		                    <div class="layui-input-block">
						        <textarea placeholder="请输入内容" class="layui-textarea" name="notes"></textarea>
		                    </div>
		                </div>
		                <div class="layui-form-item" id="butshow" style="display: none;">
		                    <div class="layui-input-block">
		                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit><i class="layui-icon">&#xe621;</i>提交</button>
		                        <!-- <button class="layui-btn layui-btn-primary" type="reset">&emsp;重置&emsp;</button> -->
		                        <button class="layui-btn layui-btn-danger" type="button" id="delete"><i class="layui-icon">&#xe640;</i>删除</button>
		                    </div>
		                </div>
		            </form>
		        </div>
		    </div>
        </div>
        
    </div>
</div>


@}